#curl https://gitee.com/ewf-9/BiJi/raw/master/ui-web.sh -o ui-web.sh && bash ui-web.sh
compose(){
if [[ `docker images |grep docker-compose-ui` ]];then
echo "已安装"
[[ `docker ps |grep docker-compose-ui` ]] || echo "未启动&&启动`docker start docker-compose-ui`"
[[ `docker ps |grep docker-compose-ui` ]] && echo "已启动"
else
docker run \
--name docker-compose-ui \
-p 5000:5000 \
-w /opt/docker-compose-projects/ \
-v /var/run/docker.sock:/var/run/docker.sock \
francescou/docker-compose-ui:1.13.0
fi
}
echo -e "1.docker-compose-ui:5000\n"
stty erase '^H' && read -p "…" num
case "$num" in 
1)compose
;;
*)
esac